// 用户信息
import { useLocation, useParams } from 'react-router-dom'
import PatientProfile from '../../components/PatientProfile'

const PatientCircleUserInfo = () => {
  const { id } = useParams<{ id: string }>()
  const location = useLocation() as { state?: { nickName?: string; headPic?: string } }
  const nick = location.state?.nickName
  const avatar = location.state?.headPic

  return (
    <PatientProfile patientUserId={id as string} nickName={nick} headPic={avatar} />
  )
}

export default PatientCircleUserInfo